package com.sneaker.shower.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sneaker.shower.entity.domain.order.SubOrderDO;
import com.sneaker.shower.entity.domain.order.discount.CouponDO;
import com.sneaker.shower.entity.dto.coupon.CouponCreateDTO;
import com.sneaker.shower.entity.dto.coupon.CouponDTO;
import com.sneaker.shower.entity.dto.coupon.CouponRespDTO;

import java.util.List;

/**
 * @author Hechangjian
 * @version 1.0
 * @className CouponService
 * @date 2019/11/26 11:59
 * @description
 * @program bath
 */
public interface CouponService extends IService<CouponDO> {
    List<CouponDTO> createCoupon(CouponCreateDTO couponCreateDTO);

    String disableAll();

    CouponDO checkCouponState(Long couponGuid, String couponNo);

    CouponRespDTO getCouponInfo(Long couponGuid, Long subOrderGuid);

    void useCoupon(SubOrderDO subOrderDO, CouponDO couponDO);
}
